<%@page contentType="text/html; charset=utf-8"%>
<!DOCTYPE html>
<html>
<head>
    <title>创业武汉合伙人</title>
    <%@include file="common/header.jsp"%>
</head>
<body>
<!-- page 容器 -->
<div class="page">
    <!-- 标题栏 -->
    <header class="bar bar-nav bgcolor nobottom">
        <button class="button button-link button-nav whitecolor pull-left" href="javaScript:history.go(-1);">
            <span class="icon icon-left"></span>
        </button>
        <h1 class="title whitecolor">个人信息</h1>
    </header>

     工具栏
    <nav class="bar bar-tab bgcolor">
        <c:if test="${currEmp.mdfStatus!='SUBMITED'}">
            <a class="tab-item active" id="submit" href="javascript:;">
                <div class="tab-label whitecolor" id="submitText">提交审核</div>
            </a>
        </c:if>
        <c:if test="${currEmp.mdfStatus=='SUBMITED'}">
            <a class="tab-item active" href="javascript:;">
                <div class="tab-label whitecolor" >已提交审核</div>
            </a>
        </c:if>
    </nav>

    <!-- 这里是页面内容区 -->
    <div class="content whitebg">
        <div>
            <div class="tutor">
                <div class="tutor-left"><img src="${Dict.prefix('UPLOAD')}${currEmp.iconUrl}" ></div>
                <div class="tutor-center-sm">
                    <div class=" row_nowrap"><strong>${currEmp.empName}</strong></div>
                    <div class=" row_nowrap little_size gray">${currEmp.dwName} | ${currEmp.zw}</div>
                </div>
                <%--<div class="tutor-right-lg living">提交审核</div>--%>
            </div>
        </div>
        <div class="list-block">
            <ul>
                <!--
                <li>
                    <div class="item-content">
                        <div class="item-inner">
                            <div class="item-title label">性别</div>
                            <div class="item-input">
                                <select>
                                    <option <c:if test="${currEmp.sex=='M'}">selected</c:if> >男</option>
                                    <option <c:if test="${currEmp.sex=='F'}">selected</c:if>>女</option>
                                </select>
                            </div>
                        </div>
                    </div>
                </li>
                <li>
                    <div class="item-content">
                        <div class="item-inner">
                            <div class="item-title label">手机号码</div>
                            <div class="item-input">
                                <input type="text" placeholder="" value="${currEmp.mobile}">
                            </div>
                        </div>
                    </div>
                </li>
                <li>
                    <div class="item-content">
                        <div class="item-inner">
                            <div class="item-title label">邮箱</div>
                            <div class="item-input">
                                <input type="email" placeholder="" value="${currEmp.email}" >
                            </div>
                        </div>
                    </div>
                </li>
                -->
                <li>
                    <div class="item-content">
                        <div class="item-inner">
                            <div class="item-title label">工作单位</div>
                            <div class="item-input">
                                <input type="text" id="dwNameNew" placeholder="可点击修改" value="${currEmp.dwName}">
                            </div>
                        </div>
                    </div>
                </li>
                <li>
                    <div class="item-content">
                        <div class="item-inner">
                            <div class="item-title label">职务</div>
                            <div class="item-input">
                                <input type="text" id="zwNew" placeholder="可点击修改" value="${currEmp.zw}">
                            </div>
                        </div>
                    </div>
                </li>
                <li>
                    <div class="item-content">
                        <div class="item-inner">
                            <div class="item-title label">职称</div>
                            <div class="item-input">
                                <input type="text" id="zcNew" placeholder="可点击修改" value="${currEmp.zc}">
                            </div>
                        </div>
                    </div>
                </li>
                <li class="align-top">
                    <div class="item-content">
                        <div class="item-inner">
                            <div class="item-title label">获奖情况</div>
                            <div class="item-input">
                                <textarea id="honorNew" placeholder="可点击修改"></textarea>
                            </div>
                        </div>
                    </div>
                </li>

            </ul>
        </div>


    </div>
</div>

<%@include file="common/panel.jsp"%>
</body>
</html>
<%@include file="common/footer.jsp"%>
<script>
    $.init();
    //避免多次提交
    var flag = true;
    $("#submit").click(function(){
        if(flag){
        flag=false;
        var param = {};
        param.id = "${currEmp.id}";
        param.dwNameNew = $("#dwNameNew").val();
        param.zwNew = $("#zwNew").val();
        param.zcNew = $("#zcNew").val();
        param.honorNew = $("#honorNew").val();
        param.mdfStatus = "SUBMITED";
        $.ajax({
            data:param,
            url:"editSelfInfoDsEmp.do",
            type: "POST",
            dataType: "json",
            success:function(data){
                if(data.statusCode=="200"){
                    $("#submitText").text("已提交审核");
                    //$("submit").css("background","#C2C2C2");
                }else{
                    $.alert(data.message);
                }
            }
        });

        }
    })
</script>